#include "stdafx.h"

//********************************************************************************
double getCostTime(LARGE_INTEGER start, LARGE_INTEGER end)
{
	double timeAccuracy = TIME_ACCURACY;
	LARGE_INTEGER nFrequency;
	QueryPerformanceFrequency(&nFrequency);
	double time = (double)timeAccuracy 
		* (end.QuadPart - start.QuadPart) 
		/ nFrequency.QuadPart;
	return time / timeAccuracy;
}
